import { getRequest, postRequest, putRequest, deleteRequest } from '@/utils/request';
/**
 * 区域开台记录*/
// 创建
export const spinReportWorkshopProductOpenRecordCreate = (data) => postRequest('/spinreport/workshop-product-open-record/create', data);

// 更新
export const spinReportWorkshopProductOpenRecordUpdate = (data) => putRequest('/spinreport/workshop-product-open-record/update', data);

// 删除
export const spinReportWorkshopProductOpenRecordDelete = (params) => deleteRequest('/spinreport/workshop-product-open-record/delete', params);

// 获得
export const spinReportWorkshopProductOpenRecordGet = (params) => getRequest('/spinreport/workshop-product-open-record/get', params);

// 分页
export const spinReportWorkshopProductOpenRecordPage = (params) => getRequest('/spinreport/workshop-product-open-record/page', params);

// 导出 Excel
export const spinReportWorkshopProductOpenRecordExportExcel = (params) => getRequest('/spinreport/workshop-product-open-record/export-excel', params);
export const spinReportWorkshopProductOpenRecordUpdateAuditState = (data) => postRequest('/spinreport/workshop-product-open-record/update-audit-state', data);

export const spinReportWorkshopProductOpenRecordData = (data) => getRequest('/spinreport/workshop-product-open-record/data', data);
